<!DOCTYPE html>
<html>
<head>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../css/aui.css">
    <link rel="stylesheet" type="text/css" href="../../css/aui-slide.css">
    <link rel="stylesheet" type="text/css" href="../../css/api.css">
    <script type="text/javascript" src="../../script/api.js"></script>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css">
    <style>
        html {
            font-size: 33%;
            height: 100%;
            width: 100%;
            display: table;
        }

        body {
            display: table-cell;
            width: 100%;
            height: 100%;
        }
        .all{
            height: 100%;
            width: 100%;
        }
        .top{
            position: relative;
            background-color: #f7911b;
            height: 7.68%;
            width: 100%;
            text-align: center;
            min-height: 7rem;
        }
        .back{
            font-size: 6rem;
            color: white;
            left: 2rem;
            line-height: 6.5rem;
            position: absolute;
        }
        .title{
            font-size: 3.5rem;
            color: white;
            line-height: 7rem;
            margin-left: -3rem;
        }
        .main{
            position: absolute;
            height: 79.32%;
            width: 100%;
            background-color: #f6f6f6;
            overflow: auto;
        }
        .a_item{
            width: 100%;
            height: auto;
        }
        .a_item img{
            width: 7rem;
            height: 7rem;
            border-radius: 5rem;
            margin-left: 2rem;
            margin-top: 3rem;
        }
        .tips1{
            position: relative;
            width: 33rem;
            padding-left: 2.5rem;
            padding-right: 2.5rem;
            padding-top: 2.5rem;
            padding-bottom: 8rem;
            border: 0.1rem solid #e3e3e3;
            background: #fff;
            border-radius: 2rem;
            margin-top: 3rem;
            margin-left: 2rem;
        }

        .tips1::after {
            position:absolute;
            top: -2.5rem;
            left: 3rem;
            padding: 2.3rem;
            border:inherit;
            border-right: none;
            border-bottom: none;
            content:"";
            background: inherit;
            -webkit-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            transform: rotate(45deg);
        }
        .text_head{
            display: block;
            font-size: 2.7rem;
            text-indent:1rem;
        }
        .tips1 p{
            display: block;
            width: 94%;
            margin: auto;
            text-align: left;
            font-size: 2.5rem;
            letter-spacing:0.2rem;
            text-indent:3.7rem;
        }
        .thk{
            float: right;
            width: 100%;
            margin-right: 0rem;
            font-size: 2.5rem;
            text-align: right;
        }
        .q_item{
                    width: 100%;
                    height: auto;
                    float: right;
                }
                .q_item img{
                    width: 7rem;
                    height: 7rem;
                    border-radius: 5rem;
                    float: right;
                    margin-right: 2rem;
                    margin-top: 3rem;
                }
                .tips2{
                    position: relative;
                    width: 33rem;
                    padding: 2.5rem;
                    border: 0.1rem solid #e3e3e3;
                    background: #fff;
                    border-radius: 2rem;
                    margin-top: 13rem;
                    margin-right: -6rem;
                    float: right;
                }

                .tips2::after {
                    position:absolute;
                    top: -2.5rem;
                    left: 25rem;
                    padding: 2.3rem;
                    border:inherit;
                    border-right: none;
                    border-bottom: none;
                    content:"";
                    background: inherit;
                    -webkit-transform: rotate(45deg);
                    -moz-transform: rotate(45deg);
                    transform: rotate(45deg);
                }
                .tips2 p{
                            display: block;
                            width: 90%;
                            margin: auto;
                            font-size: 2rem;
                            letter-spacing:0.2rem;
                        }
        .footer{
            position: absolute;
            width: 100%;
            height: 10%;
            background-color: red;
            bottom: 0;
            background-color: #F6F6F6;
        }
    
        .sub_hf{
            width: 15%;
            border: 0;
            background-color: #f8911b;
            height: 5rem;
            font-size: 2.25rem;
            border-top-right-radius: 3rem;
            border-bottom-right-radius: 3rem;
            margin-top: -0.8rem;
        }



    </style>
</head>
<body>
<div class="all">
    <div class="top">
        <span class="aui-iconfont aui-icon-left" style="font-size: 4rem;float:left;line-height: 7rem;margin-left: 0.7rem;" onclick="api.closeWin()"></span>
        <span class="title">问题反馈</span>
    </div>
    <div class="main">
        <div class="a_item">
            <img src="../../image/logo.jpg" />
            <div class="tips1">
                <span class="text_head">尊敬的芒客会员:<span>晨风</span></span>
                <p>请问您在使用过程中发生了什么问题?或者您对我们公司有什么意见可以给我们留言,我们将在第一时间联系您并为您解决!</p>
                <span class="thk" style="margin-top: 2rem;">感谢您的支持!</span>
                <span class="thk">么么哒!</span>
            </div>
        </div>
    </div>
    <div class="footer">
        <input type="text" class="hf_input" name="hf" style="width: 75%;
        border: 0;
        background-color: white;
        height: 5rem;
        font-size: 2.8rem;
        margin-top: 1rem;
        margin-left: 2rem;
        border-top-left-radius: 3rem;
        border-bottom-left-radius: 3rem;
        text-indent:2rem;
        display: inline"/>
        <button class="sub_hf">反馈</button>
    </div>
</div>
</body>
<script>
    
    
    apiready = function()
{
    var token = $api.getStorage('token');
 	var token = {
                token: token
            };
        api.ajax({
            url: 'http://www.mk517.com/webApi/mine.php',
            method: 'post',
            "headers": {
                "Content-Type": "application/json"
            },
            dataType: "json",
            data: {
                body: token
            }
        }, function(ret, err) {
            // alert(JSON.stringify(ret));
            if (ret) {

                $('.sub_hf').click(function() {
      var text = $('.hf_input').val();
      if (text==""||text==undefined||text==null) {
          alert('请输入内容');
      }else{
          var htm="<div class='q_item'><img id='tupian' src='"+ ret.user_avater+"' /><div class='tips2'><p>"+text+"</p></div></div><div class='a_item'><img src='../../image/logo.jpg'/><div class='tips1'><span class='text_head'>尊敬的芒客会员:<span>晨风</span></span><p>我们已经接到您的反馈,将很快为您处理!</p><span class='thk' style='margin-top: 3rem;'>感谢合作!</span><span class='thk'>么么哒!</span></div></div>";
          $('.main .a_item:last-child').after(htm)
          $('.hf_input').val('');
          $(".main").animate({scrollTop:$(".main").prop("scrollHeight")}, 400);

      }
    })
            
                
             }else {
                alert(JSON.stringify(err));
            }
        });



}
</script>


</html>